package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * TP运营日报表单对象
 *
 * @author xiheforever
 * @since 2025-05-13 10:02
 */
@Getter
@Setter
@Schema(description = "TP运营日报表单对象")
public class DailySalesReportForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    @Schema(description = "报告日期")
    @NotNull(message = "报告日期不能为空")
    private LocalDate reportDate;

    @Schema(description = "客单价")
    @NotNull(message = "客单价不能为空")
    private BigDecimal averageTransactionValue;

    @Schema(description = "转化率")
    @NotNull(message = "转化率不能为空")
    private BigDecimal conversionRate;

    @Schema(description = "月度销售任务（元）")
    @NotNull(message = "月度销售任务（元）不能为空")
    private BigDecimal monthlySalesTarget;

    @Schema(description = "目前已完成销售额（元）")
    @NotNull(message = "目前已完成销售额（元）不能为空")
    private BigDecimal currentSalesAmount;

    @Schema(description = "销售进度（%）")
    @NotNull(message = "销售进度（%）不能为空")
    private BigDecimal salesProgress;

    @Schema(description = "时间进度（%）")
    @NotNull(message = "时间进度（%）不能为空")
    private BigDecimal timeProgress;

    @Schema(description = "GMV同比变化（%）")
    @NotNull(message = "GMV同比变化（%）不能为空")
    private BigDecimal gmvYoyChange;

    @Schema(description = "本月平均转化率")
    @NotNull(message = "本月平均转化率不能为空")
    private BigDecimal avgConversionRate;

    @Schema(description = "本月平均客单价")
    @NotNull(message = "本月平均客单价不能为空")
    private BigDecimal avgTransactionValue;

    @Schema(description = "本月总销售数量（件）")
    @NotNull(message = "本月总销售数量（件）不能为空")
    private Integer totalSalesQuantity;

    @Schema(description = "创建时间")
    @NotNull(message = "创建时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @NotNull(message = "更新时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "删除标记(0:正常 1:删除)")
    @NotNull(message = "删除标记(0:正常 1:删除)不能为空")
    private Integer isDeleted;


}
